<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html >
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理--机构列表</title>
<link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
<link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
<script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0"
	type="text/javascript"></script>
<script src="${ctxStatic}/layui/layui.all.js" type="text/javascript"></script>
<script src="${ctxStatic}/js/common.js" type="text/javascript"></script>
</head>
<body>
	<div style="width: 100%; margin-top: 10px">
		<form class="layui-form" id="formedit" name="formedit"
			action="add_userusasstemppj" method="post"
			target="d41d8cd98f00b204e9800998ecf8427e">
			<iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank"
				style="display: none;"></iframe>

			

           <div style="width:100%;text-align: right;">
               <span style="font-size: 14px;font-weight: bold;">本季度领导评分：</span>
               <span style="font-size: 14px;font-weight: bold;color:red;margin-right:20px">100</span>
           </div>
			<div class="indexcontent">
				<table cellspacing="0" cellpadding="0" border="0"
					class="layui-table" style="margin: 0;">
					<col width="90px"></col>
					<col width="80px"></col>
					<col width="200px"></col>
					<col width="90px"></col>
					<col width="250px"></col>
					<col width="80px"></col>
					<col width="120px"></col>
					<col></col>
					<thead>
						<tr>
							<th>被评价人</th>
							<th>内容</th>
							<th>考核内容</th>
							<th>分值设置</th>
							<th>评价标准</th>
							<th>自评</th>
							<th>领导评议内容</th>
							<th></th>
						</tr>
					</thead>
				</table>

				<div class="selftable" id="selftable">
					<table cellspacing="0" cellpadding="0" border="0"
						class="layui-table" style="margin: 0;">
						<col width="90px"></col>
						<col width="80px"></col>
						<col width="200px"></col>
						<col width="90px"></col>
						<col width="250px"></col>
						<col width="80px"></col>
						<col width="120px"></col>
						<col></col>
						<tbody>
							<c:forEach var="item" items="${lst}" varStatus="idxStatus">
								<tr>
									<c:if test="${idxStatus.index==0 }">
										<td rowspan="${fn:length(lst)}">${userentity.realname}</td>
									</c:if>

									<c:if test="${item.rowspan!=0 }">
										<td rowspan="${item.rowspan}">${item.uasscontent}</td>
									</c:if>
									<td>${item.uassingredients}</td>
									<td>${item.score}</td>
									<td>${item.evaluationstandard}</td>
									<td><input name="ldscore_${item.createid}" class="layui-input layui-table-edit" type="text" value="${item.score}"></td>

									<c:if test="${idxStatus.index==0 }">
										<td rowspan="${fn:length(lst)}" style="padding: 0">
										<textarea class="layui-textarea"
												style="width: 100%; height: 100%; margin: 0; padding: 0;"
												placeholder="请输入内容" name="pynr"></textarea></td>
										
										<td rowspan="${fn:length(lst)}"></td>
									</c:if>

								</tr>
							</c:forEach>

						</tbody>
					</table>
				</div>
			</div>

  <div style="margin-top:10px;text-align: center;">
    <label style="font-size:14px;position: relative;top:3px">自评结果：</label>
    <input type="radio" name="pjjg" value="1" title="好" checked=""> 
   <input type="radio" name="pjjg" value="2" title="合格"> 
   <input type="radio" name="pjjg" value="3" title="差 "> 
     <button class="layui-btn" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
		 <input type="button" value="关闭" class="layui-btn layui-btn-primary"  onclick="top.CloseOpenWindow()"/>
  </div>
 <input type="hidden" value="1" name="pjtype">
 <input type="hidden" value="${createids }" name="createids">
			 <input type="hidden" value="${entityusertemp.templateid}" name="templateid">
			  <input type="hidden" value="${entityusertemp.userid}" name="userid">
			   <input type="hidden" value="${nf}" name="nf">
			 <input type="hidden" value="${quarter}" name="quarter">
		</form>
	</div>

	<script>
     $("#selftable").height($(window).height()-120)
     
     
    layui.use('form', function(){
       form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
	   form.render();
	});  
     
     function CloseDialog(result,msg){
   	  top.frames["iframe"].vUserUsAssTempLd.addresult(result,msg);
    }
     
    </script>
</body>
</html>